#ifndef ACTIVITY_CATEGORY_VIEW_H
#define ACTIVITY_CATEGORY_VIEW_H

#include <QDialog>

#include "view_base.h"
#include "result_processor.h"
#include "data_types.h"

namespace Ui {
    class ActivityCategoryView;
}

class QListWidgetItem;
class ActivityListView;

class ActivityCategoryView : public ViewBase, ResultProcessor
{
    Q_OBJECT

public:
    explicit ActivityCategoryView(QWidget *parent = 0);
    virtual ~ActivityCategoryView();

    virtual void IssueRequest();

  protected:
    virtual int ProcessResult(RequestMethod &r, QDomElement &e);

private:
    int parse_result(QDomElement &e);

  public slots:
    void showActivityList(QListWidgetItem *item);

private:
    Ui::ActivityCategoryView *ui;

    QVector<cate> activityCategories;

    ActivityListView *listView_;
};

#endif // ACTIVITY_CATEGORY_VIEW_H
